e4b8dce357c5dae7550928ffba3f1444ecd6a25f,servers/src/main/java/tachyon/worker/netty/NettyDataServer.java,NettyDataServer,createBootstrap,#,65

Before Change


    // set write buffer
    // this is the default, but its recommended to set it in case of change in future netty.
    boot.childOption(ChannelOption.WRITE_BUFFER_HIGH_WATER_MARK,
        mTachyonConf.getInt(Constants.WORKER_NETTY_WATERMARK_HIGH, 32 * 1024));
    boot.childOption(ChannelOption.WRITE_BUFFER_LOW_WATER_MARK,
        mTachyonConf.getInt(Constants.WORKER_NETTY_WATERMARK_LOW, 8 * 1024));

After Change


    // set write buffer
    // this is the default, but its recommended to set it in case of change in future netty.
    boot.childOption(ChannelOption.WRITE_BUFFER_HIGH_WATER_MARK,
        (int)mTachyonConf.getBytes(Constants.WORKER_NETTY_WATERMARK_HIGH, 32 * 1024));
    boot.childOption(ChannelOption.WRITE_BUFFER_LOW_WATER_MARK,
        (int)mTachyonConf.getBytes(Constants.WORKER_NETTY_WATERMARK_LOW, 8 * 1024));